package com.ql.dao.sheBeiGuanLi;

import com.ql.pojo.sheBeiGuanLi.Buy;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface buyMapper {
    //查询购买表信息
    List<Buy> qryAll(@Param("start")int start,
                     @Param("end")int end,
                     @Param("mohuName")String mohuName
                    )throws Exception;
    //获取总条数
    int qryCount(@Param("mohuName")String mohuName)throws Exception;
    //单个删除
    int del(@Param("bId")int bId) throws Exception;
    //批量删除
    int delBatch(List<Integer> list)throws Exception;
    //根据购买id查看详情
    Buy qryById(@Param("bId")String bId)throws Exception;
    //新增购买信息
    int save(Buy buy)throws Exception;
    //修改信息
    int modify(Buy buy)throws Exception;
}
